from tkinter import *
from telethon import TelegramClient
import pyautogui as pg

api_id = XXXXX
api_hash = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'

def btn_click():
    with TelegramClient('User Name', api_id, api_hash) as client:
        client.loop.run_until_complete(client.send_message('me', 'Hello, World!'))

def btn_click1():
    with TelegramClient('User Name', api_id, api_hash) as client:
        client.loop.run_until_complete(client.send_message('me', '1: command not found'))

def btn_click2():
    import zero
    with TelegramClient('User Name', api_id, api_hash) as client:
        client.loop.run_until_complete(client.send_message('me', 'ping is not recognized as an internal or external command'))

def btn_click3():
    with TelegramClient('User Name', api_id, api_hash) as client:
        client.loop.run_until_complete(client.send_message('me', 'Super Trash Market'))

def btn_click4():
    with TelegramClient('User Name', api_id, api_hash) as client:
        client.loop.run_until_complete(client.send_message('me', 'Error Telegram 404!'))

def btn_click5():
    with TelegramClient('User Name', api_id, api_hash) as client:
        client.loop.run_until_complete(client.send_message('me', 'The World Joker!'))

def btn_click6():
    with TelegramClient('User Name', api_id, api_hash) as client:
        client.loop.run_until_complete(client.send_message('me', 'Hello, User!'))

def btn_click7():
    with TelegramClient('User Name', api_id, api_hash) as client:
        client.loop.run_until_complete(client.send_message('me', 'The, World K!'))

def btn_click8():
    with TelegramClient('User Name', api_id, api_hash) as client:
        client.loop.run_until_complete(client.send_message('me', 'New Version app-1.5!'))

def btn_click9():
    with TelegramClient('User Name', api_id, api_hash) as client:
        client.loop.run_until_complete(client.send_message('me', '+ -'))
        client.loop.run_until_complete(client.send_message('me', '+ --'))
        client.loop.run_until_complete(client.send_message('me', '+ ---'))
        client.loop.run_until_complete(client.send_message('me', '+ ----'))
        client.loop.run_until_complete(client.send_message('me', '+ -----'))
        client.loop.run_until_complete(client.send_message('me', '+ ------'))
        client.loop.run_until_complete(client.send_message('me', '+ -------'))
        client.loop.run_until_complete(client.send_message('me', '+ <--------'))

def btn_click0():
    pg.hotkey('alt', 'f4')

app = Tk()

app.title("M.A.T 1.op;likjm.py")
app.geometry("300x500")

#frame = Frame(app, bg="white")
frame = Frame(app, bg="gray")
frame.place(relx = 0.15,rely = 0.16,relwidth = 0.7,relheight = 0.8)
text = Label(frame, text = "Hello, you entered the app", bg = "gray",font = 50)
text.pack()
btn = Button(frame, text='    U    ',bg = 'green',command = btn_click)
btn.pack()
btn = Button(frame, text='    1    ',bg = 'yellow',command = btn_click1)
btn.pack()
btn = Button(frame, text='    2    ',bg = 'red',command = btn_click2)
btn.pack()
btn = Button(frame, text='    3    ',bg = 'black',command = btn_click3)
btn.pack()
btn = Button(frame, text='    4    ',bg = 'darkslateblue',command = btn_click4)
btn.pack()
btn = Button(frame, text='    5    ',bg = 'springgreen',command = btn_click5)
btn.pack()
btn = Button(frame, text='    6    ',bg = 'teal',command = btn_click6)
btn.pack()
btn = Button(frame, text='    7    ',bg = 'orangered',command = btn_click7)
btn.pack()
btn = Button(frame, text='    8    ',bg = 'orange',command = btn_click8)
btn.pack()
btn = Button(frame, text='    9    ',bg = 'maroon',command = btn_click9)
btn.pack()
text = Label(frame, text = " ", bg = "gray",font = 50)
text.pack()
btn = Button(frame, text='   Exit  ',bg = 'blue',command = btn_click0)
btn.pack()

app.mainloop()